﻿using System;
using System.Globalization;

namespace _99mtable
{
    class Program
    {
        static void Main(string[] args)
        {
         //99乘法表
         for(int i = 1; i < 10; i++)
            {
                for(int j=1;j<= i;j++)
                {
                Console.Write(" {0} X {1} = {2} \t", j,i ,  i*j);
                }
                Console.Write("\n");
            }

         //菱形

         for(int m = 1; m <= 3; m++)
            {
                for(int n = 1; n <= 4 - m; n++)
                {
                    Console.Write(" ");
                }
                for(int k = 1; k <= 2 * m - 1; k++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
            for (int m = 2; m >= 1; m--)
            {
                for(int n = 1; n <= 4 - m; n++)
                {
                    Console.Write(" ");
                }
                for(int k = 1; k <= 2 * m - 1; k++)
                {
                    Console.Write("*");
                }
                Console.WriteLine();
            }
           
        }
    }
}
